{temp('kefu/head')}
</head>
<body>
<div class="pd-20">
	<table class="table">
    <tbody>
      <tr>
        <th class="text-r" width="80">用户:</th>
        <td>{$r['id']}</td>
      </tr>
      <tr>
        <th class="text-r">内容:</th>
        <td>{$r['content']}</td>
      </tr>
      <tr>
        <th class="text-r">状态:</th>
        <td>{if($r['zt'] == '1')}已处理{else}未处理{/if}</td>
      </tr>
      <tr>
        <th class="text-r">投诉时间:</th>
        <td>{code(echo date('Y-m-d H:i',$r['time']))}</td>
      </tr>
      <tr>
      	<th></th>
      	<td>
      		{if($r['zt'] == '1')}
      			
      		{else}
      			<button onclick="cl({$r['id']})">完成</button>
      		{/if}
      	</td>
      </tr>
    </tbody>
  </table>
</div>
<script type="text/javascript">
function cl(id){
	$.post('{$_url}/kefu/?act=fankui&met=tszt',{id:id},function(data){
		if(data == 'cg'){
			layer.alert('修改成功');
			setTimeout(function(){parent.location.reload()},800);return ;
		}else if(data == 'error'){
			layer.alert('修改失败');return ;
		}
	});
}
</script>
{temp('kefu/foot')}
</body>
</html>